package com.coolwen.service;

import com.coolwen.dao.LoginUserMapper;
import com.coolwen.dao.UserMapper;
import com.coolwen.entity.LoginUser;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by user on 2016/5/23.
 */
@Service("loginService")
public class LoginUserServiceImpl implements LoginUserService {

    @Autowired
    private LoginUserMapper loginUserMapper;

    private Logger logger = Logger.getLogger(getClass());
    @Override
    public LoginUser selectUserByUserName(String loginName) {
        logger.info("查找用户名:"+loginName);
        return loginUserMapper.selectUserByUserName(loginName);
    }

    @Override
    public int updateByPrimaryKeySelective(LoginUser record) {
        return loginUserMapper.updateByPrimaryKeySelective(record);
    }
}
